<?php
/**
 * Created by Mr.hu.
 * Description:'用户体现表'
 */
namespace bc\model\account;
use bc\ar\MActiveRecord;

class AdvanceModel extends MActiveRecord{

    const PAGE_SIZE=15;
    public $autoId='advance_id';
    public static function tableName()
    {
        return "{{%advance}}";
    }

    /**
     * Created by Mr.hu.
     * @param $id
     * Description：撤销申请
     */
    public function cancelIncome($id)
    {
        $obj=$this->findOne(['advance_id'=>$id]);
        $obj->advance_status_id=3;
        return $obj->save();
    }





}